x=int(input())


if(x==0):
    print("g(0.000) = 0.000")
else:
    result=1/(2*x)
    print(f"g({x:.3f}) = {result:.3f}")
